#ifndef _RASTERIZER_H_
#define _RASTERIZER_H_

#include "fgl.h"

typedef struct 
{
	GLfloat x;
	GLfloat y;
	GLfloat z;
	GLfloat u;
	GLfloat v;
}T2DVertex;

void drawLine(T2DVertex v1, T2DVertex v2);
void drawPoly(T2DVertex *v, int n);

void setPos(u8 x, u8 y);
void setPos(u16 pos);
void setPixel(u8 x, u8 y, u8 col);
void setPixel(u16 pos, u8 col);
void setPixel(u8 col);

#endif //_RASTERIZER_H_